package com.devframe.sysbase.model.base;

import java.io.Serializable;


import com.devframe.sysbase.model.*;
/**
 * This is an object that contains data related to the T_SYS_OPERATOR_LOG table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="T_SYS_OPERATOR_LOG"
 */

public abstract class BaseTSysOperatorLog  implements Serializable {

	public static String REF = "TSysOperatorLog";
	public static String PROP_FUNC_NAME = "funcName";
	public static String PROP_ACTION_URL = "actionUrl";
	public static String PROP_OPER_ID = "operId";
	public static String PROP_FUNC_CODE = "funcCode";
	public static String PROP_USER_ID = "userId";
	public static String PROP_OPER_TIME = "operTime";
	public static String PROP_LOGON = "logon";
	public static String PROP_TIME_COST = "timeCost";
	public static String PROP_USER_NAME = "userName";
    public static String PROP_OPER_INFO = "operInfo";


	// constructors
	public BaseTSysOperatorLog () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseTSysOperatorLog (java.lang.String operId) {
		this.setOperId(operId);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.String operId;

	// fields
	private java.lang.String userId;
	private java.lang.String funcCode;
	private java.lang.String funcName;
	private java.lang.String operTime;
	private java.lang.Long timeCost;
	private java.lang.String actionUrl;
	private java.lang.String userName;
    private java.lang.String operInfo;

	// many to one
	private TSysLogon logon;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="uuid.hex"
     *  column="OPER_ID"
     */
	public java.lang.String getOperId () {
		return operId;
	}

	/**
	 * Set the unique identifier of this class
	 * @param operId the new ID
	 */
	public void setOperId (java.lang.String operId) {
		this.operId = operId;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: USER_ID
	 */
	public java.lang.String getUserId () {
		return userId;
	}

	/**
	 * Set the value related to the column: USER_ID
	 * @param userId the USER_ID value
	 */
	public void setUserId (java.lang.String userId) {
		this.userId = userId;
	}



	/**
	 * Return the value associated with the column: FUNC_CODE
	 */
	public java.lang.String getFuncCode () {
		return funcCode;
	}

	/**
	 * Set the value related to the column: FUNC_CODE
	 * @param funcCode the FUNC_CODE value
	 */
	public void setFuncCode (java.lang.String funcCode) {
		this.funcCode = funcCode;
	}



	/**
	 * Return the value associated with the column: FUNC_NAME
	 */
	public java.lang.String getFuncName () {
		return funcName;
	}

	/**
	 * Set the value related to the column: FUNC_NAME
	 * @param funcName the FUNC_NAME value
	 */
	public void setFuncName (java.lang.String funcName) {
		this.funcName = funcName;
	}



	/**
	 * Return the value associated with the column: OPER_TIME
	 */
	public java.lang.String getOperTime () {
		return operTime;
	}

	/**
	 * Set the value related to the column: OPER_TIME
	 * @param operTime the OPER_TIME value
	 */
	public void setOperTime (java.lang.String operTime) {
		this.operTime = operTime;
	}



	/**
	 * Return the value associated with the column: TIME_COST
	 */
	public java.lang.Long getTimeCost () {
		return timeCost;
	}

	/**
	 * Set the value related to the column: TIME_COST
	 * @param timeCost the TIME_COST value
	 */
	public void setTimeCost (java.lang.Long timeCost) {
		this.timeCost = timeCost;
	}



	/**
	 * Return the value associated with the column: ACTION_URL
	 */
	public java.lang.String getActionUrl () {
		return actionUrl;
	}

	/**
	 * Set the value related to the column: ACTION_URL
	 * @param actionUrl the ACTION_URL value
	 */
	public void setActionUrl (java.lang.String actionUrl) {
		this.actionUrl = actionUrl;
	}



	/**
	 * Return the value associated with the column: LOGIN_ID
	 */
	public TSysLogon getLogon () {
		return logon;
	}

	/**
	 * Set the value related to the column: LOGIN_ID
	 * @param logon the LOGIN_ID value
	 */
	public void setLogon (TSysLogon logon) {
		this.logon = logon;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof TSysOperatorLog)) return false;
		else {
			TSysOperatorLog tSysOperatorLog = (TSysOperatorLog) obj;
			if (null == this.getOperId() || null == tSysOperatorLog.getOperId()) return false;
			else return (this.getOperId().equals(tSysOperatorLog.getOperId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getOperId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getOperId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}

	public java.lang.String getUserName() {
		return userName;
	}

	public void setUserName(java.lang.String userName) {
		this.userName = userName;
	}

    public java.lang.String getOperInfo() {
        return operInfo;
    }

    public void setOperInfo(java.lang.String operInfo) {
        this.operInfo = operInfo;
    }


}